package com.hanson.mapper;

import com.hanson.entity.GoodsScoreBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsScoreBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(GoodsScoreBean record);

    GoodsScoreBean selectByPrimaryKey(Integer id);

    List<GoodsScoreBean> selectByGoodsId(@Param("goodsId") Integer goodsId);

    int deleteByGoodsId(@Param("goodsId") Integer goodsId);

    int updateIsOpenByGoodsId(@Param("isOpen") Integer isOpen,@Param("goodsId") Integer goodsId);

    List<GoodsScoreBean> selectAll();

    int updateByPrimaryKey(GoodsScoreBean record);
}